<?php
	$csvField = array('Username','Firstname','Lastname','Email','Phone');
	$csv->addRow($csvField);
 
	foreach ($lines as $line) {
		
		$csv->addRow($line);
	}
	echo $csv->render($fileName);  
?>